<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>出库界面</title>
<script type="text/javascript" src="static/easyui/jquery.min.js"></script>
<script type="text/javascript" src="static/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="static/easyui/locale/easyui-lang-zh_CN.js"></script>
<link rel="stylesheet" href="static/easyui/themes/icon.css"/>
<link rel="stylesheet" href="static/easyui/themes/macosx/easyui.css"/>
</head>
<body>
<script type="text/javascript">
//时间转换
function comformatDate(date) {
	var day = new Date(date); 
	var Year = 0; 
	var Month = 0; 
	var Day = 0; 
	var CurrentDate = ""; 
	//初始化时间 
	Year= day.getFullYear();//
	Month= day.getMonth()+1; 
	Day = day.getDate(); 
	Hour = day.getHours(); 
	 Minute = day.getMinutes(); 
	 Second = day.getSeconds(); 
	CurrentDate += Year + "-"; 
	if (Month >= 10 ) { 
		CurrentDate += Month + "-"; 
	}else { 
		CurrentDate += "0" + Month + "-"; 
	} 
	if (Day >= 10 ) { 
		CurrentDate += Day ; 
	}else { 
		CurrentDate += "0" + Day ; 
	} 
	if(Hour>=10){
		CurrentDate +=" "+Hour;
	}else{
		CurrentDate +=" "+"0"+Hour;
	}
	if(Minute>=10){
		CurrentDate +=":"+Minute;
	}else{
		CurrentDate +=":"+"0"+Minute;
	}
	if(Second>=10){
		CurrentDate +=":"+Second;
	}else{
		CurrentDate +=":"+"0"+Second;
	}
	return CurrentDate; 
};

/* //选择药品
$("#drug-list").datagrid({
	 onDblClickRow:function(rowIndex,rowDate){
		 var zhongyao=$("#dept-add-dg").datagrid("getRows");//得到药品表格的所有行
		 if(zhongyao.length==0){//如果他的长度为零,就表示没有一条数据就新增一条
			 rowDate.destruction_number=1;//设置一个药品数量默认值
			 
			 $('#dept-add-dg').datagrid('appendRow',rowDate);
				var ypdj=rowDate.drug_selling_price;//得到选中药品的金额
				var ypdjs=parseInt(ypdj); 
				var dqz=$("#destruction_total_price").val();//得到当前的总金额
				var dqzs=parseInt(dqz);
				$("#destruction_total_price").textbox("setValue",ypdjs+dqzs);//重新赋值给药品总金额

		 }else{
			 var a;//ar一个变量作为得到具体哪一行的参数
			 var opin = true;
			 for (var i= 0;i<zhongyao.length;i++){				 
					 if(rowDate.drug_id==zhongyao[i].drug_id){
						 opin = false;
						 a=i;
					 }
				}
			 if(opin){//如果判断表格里面没有相同的药品就新增一行
				 rowDate.destruction_number=1;
				 $('#dept-add-dg').datagrid('appendRow',rowDate);
				 	var ypdj=rowDate.drug_selling_price;//得到选中药品的金额
				 	var ypdjs=parseInt(ypdj); 
					var dqz=$("#destruction_total_price").val();//得到当前的总金额
					var dqzs=parseInt(dqz);
					$("#destruction_total_price").textbox("setValue",ypdjs+dqzs);//重新赋值给药品总金额
				 
			 }else{//判断表格里面有相同的药品就数量加一
				 rowDate.destruction_number=parseInt(rowDate.destruction_number)+parseInt(1);
				 $('#dept-add-dg').datagrid('updateRow',{index:a,row:{rowDate}}); 
			 }
			 var sum = 0;//定义一个值来存储金额
			 for (var i = 0; i<zhongyao.length; i++) {//循环右边药单所有行取出药品数量和单价相乘
				var row = zhongyao[i];
				sum = sum + parseInt(row.drug_selling_price)*parseInt(row.destruction_number);
			  }
			 $("#destruction_total_price").textbox("setValue",sum);//重新赋值给药品总金额
		 }
	 }
});


	//选项卡切换
	$('#tt').tabs({
	    border:false,
	    /* onSelect:function(title){
			alert(title+' is selected');
	    }  */
/* 	});
	
	//选择药品表格
	$(function(){	
		$('#drug-list').datagrid({
			url:'yaopinbiaoge',
			pagination:true,
		    pageNumber:1,
		    pageSize:5,
		    pageList:[5,10],
			columns:[[
				{field:'inventory_yk_id',title:'药品编号',width:140,align:'center'},
				{field:'drug_name',title:'药品名称',width:140,align:'center'},
				{field:'drug_specifications',title:'药品规格',width:140,align:'center'},
				{field:'drug_pc',title:'批次',width:140,align:'center'},
				{field:'drug_selling_price',title:'销售价',width:140,align:'center'},
				{field:'drug_types_name',title:'药品类型',width:140,align:'center'},
				{field:'inventory_number',title:'库存数量',width:140,align:'center'}
			]]		  		
		});	
	}); */
	
	//销毁表格初始化	
/* $(function(){		
		//销毁的表格
		$('#xiaohuidan').datagrid({
		    url:'xiaohuibg',
		    pagination:true,
		    pageNumber:1,
		    pageSize:5,
		    pageList:[5,10],
		    columns:[[			    	
		    	{field:'',checkbox:true,width:"130px",align:'center'},
				{field:'destruction_id',title:'销毁编号',width:"170px",align:'center'},
				{field:'destruction_time',title:'销毁时间',width:"200px",align:'center',formatter:comformatDate},
				{field:'destruction_number',title:'销毁数量',width:"170px",align:'center'},
				{field:'destruction_people',title:'销毁人',width:"170px",align:'center'},
				{field:'destruction_total_price',title:'销毁金额',width:"170px",align:'center'},
				//{field:'destruction_static',title:'状态',width:"130px",align:'center'},
				{field:'caozuo',title:'操作',width:170,align:'center',
					formatter:function(value,row,index){
						return "<input type='button' style='background:#E4F1FB;color:#2779AA;border:none' onclick='shenhexiaohui("+row.destruction_id+")' value='查看详情'/>";
					}	
				}
		    ]]			
		});
		
		//销毁=====点击保存按钮
		$("#baocun").click(function(){
			$("<form method='post'>").appendTo("body").form({
				url:'xiaohui-save',
				onSubmit:function(param){
					//销毁时间
					
					//销毁人
					param["dsstruction.destructionPeople"] = $("#destruction_people").val();
					//销毁金额
					param["dsstruction.destructionTotalPrice"] = $("#destruction_total_price").val();
					var sum =0;
					//获取表格中的采购的详情记录
					var rows = $("#dept-add-dg").datagrid("getRows");
					//console.log(rows);					
					for (var i = 0; i < rows.length; i++) {
						//库存编号
						param["ddetailsYk["+i+"].InventoryYk.inventoryYkId"] = rows[i]["inventory_yk_id"];
						//销毁数量
						param["ddetailsYk["+i+"].destructionDetaNumber"] = rows[i]["destruction_number"];
						//药品价格
						param["ddetailsYk["+i+"].drugSellingPrice"] = rows[i]["drug_selling_price"];
						var row=rows[i];
						sum=sum+parseInt(row.destruction_number);
					}
					//数量				
					param["dsstruction.destructionNumber"] =sum;
					//alert("数量"+sum);
				},
				success:function(d){					
					$.messager.show({
						title:'提 示',
						msg:'销毁新增成功！！！！',
						height:200,
						timeout:1000,
						showType:'slide'
					});
					//销毁时间
					$("#destruction_time").textbox('setValue',null);
					//销毁金额
					$("#destruction_total_price").textbox('setValue',null);
					//销毁人
					$("#destruction_people").textbox('setValue',null);
					//刷新表格
					$("#xiaohuidan").datagrid("reload");
				}
			}).submit();
		});
	});		
	//销毁新增显示选择药品界面
	$("#xiaohuixuanze").click(function(){
		$("#xuanze").window("open");
	});
	//销毁查看详情
	function shenhexiaohui(id2){
		$("#shenhejiemian").window("open");//打开采购详情界面
		var row=$('#xiaohuidan').datagrid('getSelected');
		/* var id2 = row["destruction_id"];//id
		alert(id2);
		$("#tongguo").val(id2); 
		//======================销毁详情表格
		$('#shenhexiangqing').datagrid({
		    url:'xiaohxq',
		    queryParams: {
		    	destruction_id:id2
		    },
		    columns:[[
		    	{field:'',checkbox:true,width:"130px",align:'center'},
				{field:'des_details_id',title:'详情编号',width:"130px",align:'center'},
				{field:'inventory_yk_id',title:'库存编号',width:"130px",align:'center'},
				{field:'drug_pc',title:'批次',width:"130px",align:'center'},
				{field:'destruction_deta_number',title:'数量',width:"130px",align:'center'},
				{field:'drug_name',title:'药品名称',width:"130px",align:'center'}
		    ]],
		    pagination:true,
		    pageNumber:1,
		    pageSize:5,
		    pageList:[5,10,15]			       
		});	
	} 
	
	 //销毁审核通过按钮
	 /* $("#shenhetongguo").click(function(){
		//修改数量====减少库存数量
			var hh = $('#shenhexiangqing').datagrid("getRows");				
			for(var i=0; i< hh.length;i++){
				var inventory_yk_id = hh[i]["inventory_yk_id"];
				var bb = hh[i]["destruction_deta_number"];				 
				$.ajax({
					url : 'jianshao',
					type : 'post',
					data : {
						"inventory_yk_id":inventory_yk_id,
						"bb":bb,
					},
					success : function(data){
						$.messager.show({
							title:'提 示',
							msg:'成功！！！！',
							height:200,
							timeout:1000,
							showType:'slide'
						});
					}
				});						
			}		 
		//修改状态
		/* var aa=$('#tongguo').val();
		$.ajax({
			url:'idxg',
			type:'post',
			data:{
				'destructionId':aa,
			},
			success:function(d){
				if(parseInt(d)==1){
					$("#xiaohuidan").datagrid("reload");
				}else{
					alert("销毁失败");
				}
			}
		}) 
		$("#shenhejiemian").window("close");
	}); */
	 //供应商的下拉列表
	/*  $(function(){
		 //初始化供应商下拉列表
		 $('#ggyyss').combobox({
			 url:'aaaa',//数据源
		     valueField:'factoryId',//实际值
		     textField:'factoryName',//显示值
		 });
	 }); */	
	 
	//文本框回车事件搜索
	/*$('#exchangeSear').searchbox({
		searcher:function(value,name){
			$('#xiaohuidan').datagrid({
				url:'xiaohuibg?destruction_id='+value,	
			});				  
		}
	}); */
//=================================出药房==============================================
	//药房请领单表格
	$(function(){
		$('#sqjl').datagrid({
			url:'sqjls',
			columns:[[
				{field:'',checkbox:true,width:"160px",align:'center'},
				{field:'sqid',title:'申请id',width:100,align:'center'},					
				{field:'sqtime',title:'申请时间',width:100,formatter:comformatDate,align:'center'},					
				{field:'sqty',title:'是否同意',width:100,align:'center'},					
				{field:'zt',title:'状态',width:100,align:'center'},					
				{field:'jbr',title:'申请人',width:100,align:'center'},
				{field:'cz',title:'操作',width:130,align:'center',
					formatter:function(value,row,index){
						return "<input type='button' style='background:#E4F1FB;color:#2779AA;border:none' onclick='shenqingxq("+row.sqid+")' value='详情'/>";
					}	
				}
			]]		
		});
	});
	//请领单详情
	function shenqingxq(id3){
		$("#sqxq").window("open");//打开采购详情界面
		var row=$('#sqjl').datagrid('getSelected');
		//访问数据源、初始化表格		
		$('#sqypxq').datagrid({
			url:'qldxq',
		    queryParams: {
		    	apply_id:id3
		    },
		    columns:[[
		    	{field:'ypid',title:'药品编号',width:100,align:'center'},						
				{field:'sqid',title:'申请ID',width:100,align:'center'},		
				{field:'ypmc',title:'药品名称',width:100,align:'center'},											
				{field:'sl',title:'申请数量',width:100,align:'center'}					
		    ]],
		    pagination:true,
		    pageNumber:1,
		    pageSize:5,
		    pageList:[5,10,15]			       
		});	
	}
	
	//出药房单的表格
	$(function(){
		$('#jilubiaoge').datagrid({
			url:'ckbiaoge',
			columns:[[		
				{field:'',checkbox:true,width:"210px",align:'center'},
				{field:'outbound_id',title:'出库编号',width:"210px",align:'center'},
				{field:'apply_id',title:'申请编号',width:"210px",align:'center'},
				{field:'outbound_date',title:'出库时间',width:"210px",align:'center',formatter:comformatDate},
				{field:'outbound_delivery_man',title:'出库人',width:"210px",align:'center'},	
				{field:'cz',title:'操作',width:210,align:'center',
					formatter:function(value,row,index){
						return "<input type='button' style='background:#E4F1FB;color:#2779AA;border:none' onclick='xiangqing("+row.sqid+")' value='查看详情'/>";
					}	
				}
			]],
			pagination:true,
			pageNumber:1,
			pageSize:5,
			pageList:[5,10,15]			       
		});
		var date = new Date(+new Date()+8*3600*1000).toISOString().replace(/T/g,' ').replace(/\.[\d]{3}Z/,'');

		//点击自动发药按钮
		$("#queding").click(function(){
			//alert(123);
			$("<form method='post'>").appendTo("body").form({
				url:'shenqing-save',
				onSubmit:function (param){
					param["outbound.outboundDate"] = new Date();
					param["outbound.outboundDeliveryMan"] = "${user.userName}";
					//alert("---------------------");
					//获取表格中的详情记录
					var rows =$("#sqypxq").datagrid("getRows");
					var ii=0;
					for (var i = 0; i < rows.length; i++) {
						//药品编号
						param["odetails["+i+"].drugsYk.drugId"] = rows[i]["ypid"];
						//药品数量
						param["odetails["+i+"].outdetailsShouldNumber"] = rows[i]["sl"];
						ii=rows[i]["sqid"];
					}				
					param["outbound.Apply.applyId"] =ii;
				},
				success:function(d){
					$.messager.show({
						title:'提 示',
						msg:'出库成功！！！！',
						height:200,
						timeout:1000,
						showType:'slide'
					});
					$("#jilubiaoge").datagrid("reload");//刷新表格
					$("#sqxq").window("close");
				}
			}).submit();
		});
	});
	
	//出库进行审核查看详情
	function xiangqing(id2){
		$("#chuyaofangxq").window("open");//打开采购详情界面
		var row=$('#jilubiaoge').datagrid('getSelected');
		var id2 = row["outbound_id"];//id
		//alert(id2);
		$("#tongguo2").val(id2);
		//======================出库详情表格
		$('#xiangqingbiaoge').datagrid({
		    url:'chuyfxq',
		    queryParams: {
		    	outbound_id:id2
		    },
		    columns:[[
		    	{field:'',checkbox:true,width:"120px",align:'center'},
				{field:'outdetails_id',title:'出库详情编号',width:"120px",align:'center'},
				{field:'apply_id',title:'申请ID',width:"120px",align:'center'},
				{field:'drug_id',title:'药品编号',width:"120px",align:'center'},
				{field:'drug_name',title:'药品名称',width:"120px",align:'center'},
				{field:'outdetails_should_number',title:'数量',width:"120px",align:'center'},
				{field:'drug_pc',title:'批次',width:"120px",align:'center'}
		    ]],
		    pagination:true,
		    pageNumber:1,
		    pageSize:5,
		    pageList:[5,10,15]			        
		});	
	}

	//文本框回车事件搜索
	$('#exchangeSear2').searchbox({
		searcher:function(value,name){
			//采购单的表格
			$('#jilubiaoge').datagrid({
				url:'ckbiaoge?outbound_id='+value,	
			});				  
		}
	});

		//表格中的文本框
		function formatAction(value,row,index){
			if (row.editing){
				var s = '<input type="button" style="background:#E4F1FB;color:#2779AA;border:none" onclick="saverow('+index+')" value="保存"/> ';
				var c = '<input type="button" style="background:#E4F1FB;color:#2779AA;border:none" onclick="cancelrow(this)" value="返回"/> ';
				return s+c;
			} else {
				var e = '<input type="button" style="background:#E4F1FB;color:#2779AA;border:none" onclick="editrow(this)" value="编辑"/> ';
				var d = '<input type="button" style="background:#E4F1FB;color:#2779AA;border:none" onclick="deleterow(this)" value="删除"/> ';
				return e+d;
			} 
		}			
		$.extend($.fn.datagrid.defaults.editors, {
			numberspinner: {
				init: function(container, options){
					var input = $('<input type="text">').appendTo(container);
					return input.numberspinner(options);
				},
				destroy: function(target){
					$(target).numberspinner('destroy');
				},
				getValue: function(target){
					return $(target).numberspinner('getValue');
				},
				setValue: function(target, value){
					$(target).numberspinner('setValue',value);
				},
				resize: function(target, width){
					$(target).numberspinner('resize',width);
				}
			}
		});
		$(function(){
			$('#dept-add-dg').datagrid({
				onBeforeEdit:function(index,row){
					$(this).datagrid('updateRow', {index:index,row:{editing:true}})
				},
				onAfterEdit:function(index,row){
					$(this).datagrid('updateRow', {index:index,row:{editing:false}})
				},
				onCancelEdit:function(index,row){
					$(this).datagrid('updateRow', {index:index,row:{editing:false}})
				}
			});
		});
		function getRowIndex(target){
			var tr = $(target).closest('tr.datagrid-row');
			return parseInt(tr.attr('datagrid-row-index'));
		}
		function editrow(target){
			$('#dept-add-dg').datagrid('beginEdit', getRowIndex(target));
		}
		//文本框删除事件
		function deleterow(target){
			$.messager.confirm('温馨提示','确定删除?',function(r){
				if (r){
					$('#dept-add-dg').datagrid('deleteRow', getRowIndex(target));
					var rows = $('#dept-add-dg').datagrid("getRows");
					
					var bb = 0;
					for (var i = 0; i < rows.length; i++) {
						var row =rows[i];
						bb = bb + parseInt(row.drug_selling_price)*parseInt(row.destruction_number);
					}
					$("#destruction_total_price").textbox('setValue',bb);
				}
			});
		}
		//文本框保存事件
		function saverow(target){
			var rows = $('#dept-add-dg').datagrid("getRows");
			$('#dept-add-dg').datagrid('endEdit', target);
		
			var bb = 0;
			for (var i = 0; i < rows.length; i++) {
				if(rows[i]["destruction_number"]<=0){
					rows[i]["destruction_number"]=1;
					$('#dept-add-dg').datagrid('refreshRow',i);
					 for (var i = 0; i < rows.length; i++) {
						 var row = rows[i];
						sum = sum + parseInt(row.drug_selling_price)*parseInt(row.destruction_number);
					}
					 $("#destruction_total_price").textbox('setValue',sum);//重新赋值给药品总金 
					 break;
				}else if(rows[i]["destruction_number"]==''){
					rows[i]["destruction_number"]=1;
					$('#dept-add-dg').datagrid('refreshRow',i);
					 for (var i = 0; i < rows.length; i++) {
						 var row = rows[i];
						sum = sum + parseInt(row.drug_selling_price)*parseInt(row.destruction_number);
					}
					 $("#destruction_total_price").textbox('setValue',sum);//重新赋值给药品总金 
					 break;
				}else if(!(/^[1-9]\d*$/).test(rows[i]["destruction_number"])){
					
					rows[i]["destruction_number"]=1;
					$('#dept-add-dg').datagrid('refreshRow',i);
				 for (var i = 0; i < rows.length; i++) {
					 var row = rows[i];
					sum = sum + parseInt(row.drug_selling_price)*parseInt(row.destruction_number);
					}
				 $("#destruction_total_price").textbox('setValue',sum);//重新赋值给药品总金 
				 break;
				}else{
					var row =rows[i];
					bb = bb + parseInt(row.drug_selling_price)*parseInt(row.destruction_number);
				}
			}
			$("#destruction_total_price").textbox('setValue',bb);
		}
		function cancelrow(target){
			$('#dept-add-dg').datagrid('cancelEdit', getRowIndex(target));
		}	 
</script>
<!-- =======隐藏域======= -->
<input type="hidden" type="text" id="tongguo">
<input type="hidden" type="text" id="tongguo2">
<input type="hidden" type="text" id="tongguo3">

	<div id="tt" class="easyui-tabs">		       	
		<!-- 第一个选项卡 -->	    
		<%-- <div title="销毁" style="overflow:auto;display:none;">
			<div class="easyui-layout" style="padding:20px;">
				<!-- <input id="destruction_time" class="easyui-datebox" data-options="label:'销毁时间：',width:260,labelAlign:'right'"> -->
			 	<input id="destruction_total_price" class="easyui-textbox" readonly data-options="label:'销毁金额：',value:0,width:260,labelAlign:'right'">	
			 	<input id="destruction_people" value="${user.userName}" class="easyui-textbox" data-options="label:'销毁人：',width:260,labelAlign:'right'">		 	
			 </div>
			 <div style="text-align:center;">
			 	<a id="xiaohuixuanze" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true">添加药品</a>
				<a id="baocun" class="easyui-linkbutton" data-options="iconCls:'icon-ok',plain:true">保存</a>
		 	 </div>
		 	 <div style="height:200px;">
				<table id="dept-add-dg" class="easyui-datagrid" data-options="fit:true,fitColumns:true">    	
			    	<thead>   
					   <tr>   
					   	  <th data-options="field:'inventory_yk_id',width:100">库存编号</th>
					   	  <th data-options="field:'drug_id',width:100">药品编号</th>   
						  <th data-options="field:'drug_name',width:100">药品名称</th>   
						  <th data-options="field:'drug_selling_price',width:100">药品价格</th>   
						  <th data-options="field:'drug_specifications',width:100">规格</th>   
						  <th data-options="field:'destruction_number',width:100,"editor="{type:'numberspinner',options:{min:1}}">销毁数量</th>
						  <th data-options="field:'caozuo',width:100,formatter:formatAction">操作</th>
					   </tr>   
					</thead>
				</table>
			</div>
			<div style="padding:10px;">
				<input id="exchangeSear" class="easyui-searchbox" style="width:280px;height:30px;"
						data-options="label:'销毁编号：',prompt:'请输入销毁编号',labelAlign:'right'">				
			</div>
			<table id="xiaohuidan" class="easyui-datagrid" data-options="fitColumns:true" style="padding:15px;height:260px;"></table> 				
		</div> --%>
		
		<!-- ===========================出药房======================================= -->
		<div title="药房" style="padding:20px;display:none;">
			<!-- 药房请领单表格 -->
	    	<table id="sqjl" class="easyui-datagrid" data-options="fitColumns:true,pagination:true"  style="height:300px"></table>
			<div class="easyui-layout" style="padding:20px;margin-left:10px;">
				<input id="exchangeSear2" class="easyui-searchbox" style="width:280px;height:30px;"
						data-options="label:'出库编号：',prompt:'请输入出库编号',labelAlign:'right'">				
			</div>
			<!-- 出库药品列表 -->
			<table id="jilubiaoge" class="easyui-datagrid" data-options="fitColumns:true" style="padding:15px;height:300px;"></table>	
		</div>
	</div>
		
		<!-- 选择药品界面 -->
		<div id="xuanze" class="easyui-window" title="选择药品" style="width:837px;height:340px" data-options="iconCls:'icon-add',closed:true">   
	 		<table id="drug-list" class="easyui-datagrid" data-options="fitColumns:true," style="padding:15px;height:300px;"></table>	 		
		</div>
		<!-- 销毁进行审核界面 -->
		<div id="shenhejiemian" class="easyui-window" title="审核详情" style="width:700px;height:450px" data-options="iconCls:'icon-add',closed:true">			
			<table id="shenhexiangqing" class="easyui-datagrid" data-options="fitColumns:true" style="padding:15px;height:350px;"></table>
			<a id="shenhetongguo" class="easyui-linkbutton" data-options="iconCls:'icon-ok',plain:true" style="margin-left:506px;margin-top:20px;">确认销毁</a>
		</div>		
		<!-- 请领单详情 -->
		<div id="sqxq" title="请领单详情" class="easyui-window" data-options="closed:true" style="width:800px;height:450px">			
			<table id="sqypxq" class="easyui-datagrid" data-options="fitColumns:true,pagination:true" style="height:350px"></table>	
			<a id="queding" class="easyui-linkbutton" data-options="iconCls:'icon-ok',plain:true" style="margin-left:350px;">自动发药</a>		
		</div>
		<!-- 出药房详情界面 -->
		<div id="chuyaofangxq" class="easyui-window" title="查看出库详情" style="width:800px;height:340px" data-options="iconCls:'icon-add',closed:true">			
			<table id="xiangqingbiaoge" class="easyui-datagrid" data-options="fitColumns:true,pagination:true" style="height:300px"></table>
		</div>
</body>
</html> 